package com.ctw.mapmycity.ws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

//@BindingType(JSONBindingID.JSON_BINDING)
@WebService(
		name = "AuthService",
		targetNamespace = "http://mapmycity.com/authSevice/"
)
public interface AuthService {
	
	@WebMethod
	public String registerAccount(
			@WebParam(name="email") String user, 
			@WebParam(name="password") String password, 
			@WebParam(name="accountType") String accountType);
	
	@WebMethod
	public String authenticate(
			@WebParam(name="email") String email, 
			@WebParam(name="password") String password,
			@WebParam(name="accountType") String accountType);
	
	@WebMethod
	public boolean checkToken(
			@WebParam(name="email") String email, 
			@WebParam(name="token") String password);
}
